﻿<UserControl x:Class="WpfImageDuplicates.ShowAvailableFilters"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:dragdrop="clr-namespace:DragDropLibrary;assembly=DragAndDrop"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:WpfImageDuplicates"
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="500">
    <Grid>
        <!--dragdrop:DragAndDrop.DragEnabled="True"-->
        <ListBox Grid.Row="1" Name="lstFilterItems" SelectionMode="Extended" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                 Width="Auto" Height="Auto" dragdrop:DragAndDrop.RegisterDragSourceName="FilterItems"
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel ItemWidth="146" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border HorizontalAlignment="Stretch" Width="140" Margin="1,1,1,0" Padding="1,1,1,1" BorderThickness="0,0,0,0">
                        <TextBlock Padding="0,0,0,0" Margin="0,0,0,0" HorizontalAlignment="Left" Text="{Binding Path=TypeName}" FontSize="9" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"></TextBlock>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
